package com.atguigu.system.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2025-03-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("biz_purchase_management")
@ApiModel(value="PurchaseManagement对象", description="")
public class PurchaseManagement implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "purchase_id", type = IdType.AUTO)
    private Integer purchaseId;

    @ApiModelProperty(value = "关联的供应商 ID")
    private Integer supplierId;

    @ApiModelProperty(value = "关联的商品 ID")
    private Integer productId;

    @ApiModelProperty(value = "采购状态，记录采购流程阶段")
    private String purchaseStatus;

    @ApiModelProperty(value = "单位商品价格")
    private BigDecimal unitPrice;

    @ApiModelProperty(value = "采购数量")
    private Integer purchaseQuantity;

    @ApiModelProperty(value = "采购总金额，自动计算")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "采购订单号")
    private String orderNumber;

    @ApiModelProperty(value = "采购记录创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "采购记录更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "逻辑删除标志，0 表示未删除，1 表示已删除")
    @TableLogic
    private Integer isDeleted;

    @TableField(exist = false)
    private String skuName;
}
